import network from '@/utils/network'
import baseUrl from './baseUrl'

const BASE_URL = baseUrl + '/Common'
export default {
  getGuid() {
    return network.request({
      url: BASE_URL + '/GetGuid'
    })
  },
  async getConfigList(params: any = {}): Promise<any> {
    return await network.request({
      url: BASE_URL + '/GetConfigList',
      method: 'get',
      params
    })
  },
  async getConfigValueByKey(key: string) {
    return await network.request({
      url: BASE_URL + '/GetConfigValueByKey',
      method: 'get',
      params: {
        key
      }
    })
  }
}